package service.ImpI;

import bean.User;
import dao.impI.UserDaoImp;
import service.UserService;

public class UserServiceImpI implements UserService {
    UserDaoImp userDaoImp = new UserDaoImp();

    /**
     * 用户登录 业务逻辑
     * @param username
     * @param password
     * @return
     */
    @Override
    public User Login(String username, String password) {
        return userDaoImp.Login(username,password);
    }

    /**
     * 用户注册 业务逻辑
     * @param username+
     * @param password
     * @return
     */
    @Override
    public boolean register(String username, String password) {
        return userDaoImp.register(username,password);
    }
}
